<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<script language="JavaScript" type="text/javascript"
	src="${ctx}/scripts/div/common.js"></script>
<script language="JavaScript" type="text/javascript"
	src="${ctx}/scripts/common.js"></script>
<script language="JavaScript" src="${ctx}/scripts/ajaxException.js"></script>
<%@ include file="/commons/commonList.jsp"%>
<%@ include file="/commons/tabs.jsp"%>
<script type="text/javascript">
/*************装修申请项目*******************/
	function openAppAdd(){ //打开装修申请项目添加
		var url = "${ctx}/system_auditingItemAction.do?method=initAdd";
		top.windowOpen(url,"appAdd","新增装修申请项目",230,550,true,"appAddFrame");
	}
	function openAppEdit(keyword){ //打开装修申请修改
		var url = "${ctx}/system_auditingItemAction.do?method=initEdit&keyword=" + keyword;
		top.windowOpen(url,"appEdit","修改装修申请项目",230,550,true,"appEditFrame");
	}
	function openAppDelte(){ //删除装修申请
		var url = "${ctx}/system_auditingItemAction.do?method=delete";
		_delete(url);
	}
/*************装修收费项目*******************/
	function openRenovateChargeItemAdd(){ //打开装修收费项目
		var url = "${ctx}/system_registerItemAction.do?method=initAdd";
		top.windowOpen(url,"registerItemAdd","登记装修收费项目",390,550,true,"registerItemAddFrame");
	}
	function openRenovateChargeItemEdit(keyword){ //打开装修收费项目修改
		var url = "${ctx}/system_registerItemAction.do?method=initEdit&keyword=" + keyword;
		top.windowOpen(url,"registerItemEdit","修改装修收费项目",390,550,true,"registerItemEditFrame");
	}
	function openRenovateCharegeItemDelete(){ //删除装修收费项目
		var url = "${ctx}/system_registerItemAction.do?method=delete";
		_delete(url);
	}
/***********装修出入证收费项目************/
	function openPassChargeItemAdd(){ //打开装修出入证收费项目
		var url = "${ctx}/system_inAndOutAction.do?method=initAdd";
		top.windowOpen(url,"registerItemAdd","登记装修出入证收费项目",360,550,true,"registerItemAddFrame");
	}
	function openPassChargeItemEdit(keyword){//打开修改装修出入证收费项目
		var url = "${ctx}/system_inAndOutAction.do?method=initEdit&keyword=" + keyword;
		top.windowOpen(url,"registerItemAdd","修改装修出入证收费项目",360,550,true,"registerItemAddFrame");
	}
	function openPassChargeItemDelete(){ //删除
		var url = "${ctx}/system_inAndOutAction.do?method=delete";
		_delete(url);
	}
/***********进场确认项目***********/
	function openEnterItemAdd(){
		var url = "${ctx}/system_enterItemAction.do?method=initAdd";
		top.windowOpen(url,"enterItemAdd","进场确认项目",180,550,true,"enterItemAddFrame");
	}
	function openEnterItemEdit(keyword){
		var url = "${ctx}/system_enterItemAction.do?method=initEdit&keyword=" + keyword;
		top.windowOpen(url,"enterItemEdit","进场确认项目",180,550,true,"enterItemEditFrame");
	}
	function openEnterItemDelete(){
		var url = "${ctx}/system_enterItemAction.do?method=delete";
		_delete(url);
	}
/***********违规类别***********/
	function openCategoryAdd(){//打开新增违规类别
		var url = "${ctx}/system_violationCategoryAction.do?method=initAdd";
		top.windowOpen(url,"categoryAdd","违规类别",300,550,true,"categoryAdd");
	}
	function openCategoryEdit(keyword){//打开修改违规类别
		var url = "${ctx}/system_violationCategoryAction.do?method=initEdit&keyword=" + keyword;
		top.windowOpen(url,"categoryEdit","违规类别",300,550,true,"categoryEdit");
	}
	function openCategoryDelete(){ //删除
		var url = "${ctx}/system_violationCategoryAction.do?method=delete";
		_delete(url);
	}
/***********私有方法*************/
	function _delete(url){//执行删除动作
		var params = "keyword=" + document.frames('renovationFrame').currentID;
		sendAjaxRequest(url,params,function(result){
			ajaxSubmitException(result.responseText);
			flushFrame();
		});
	}
	function flushFrame(){ //刷新主页面
		var url = document.frames('renovationFrame').document.location.href;
		document.frames('renovationFrame').document.location.reload();
	}

	var marker = 1; //1:其它分帧页 2:保证金退还设置   3:装修审批设置

	function beforeCheck(){//切换分帧页前进行验证
		if(marker == 2){
			if(!document.frames('renovationFrame').checkReturnConfig()){
				if(window.confirm("保证金设置数据被更新，是否保存?")){
		   			document.frames('renovationFrame').submitWin();
		   		}
			}
		}else if (marker == 3){
			document.frames('renovationFrame').checkApprove();
			var flag = document.frames('renovationFrame').appFlag;
			if(!flag){
				if(window.confirm("审批人数据被更新，是否保存?")){
		   			document.frames('renovationFrame').submitForm();
		   		}
			}
		}
		return true;
	}
	
</script>
</head>
<body>
<div class="pageNav_bg">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td id="pageNav_leftimg"><img
			src="${ctx}/images/ico_fc_zhuanxiu.gif" width="46" height="47" /></td>
		<td id="navWord"><span class="page_title">装修管理业务配置</span></td>
		<td class="pageNav_right"><a href="javascript:showFull_in();"><img
			id="full_image" src="${ctx}/images/ico_fullscreen.gif" border="0" /></a></td>
	</tr>
</table>
</div>
<div class="container">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
	<tr>
		<td width="15%" align="right">
		<div id="auditingItem" style="display: none"><!--------------------------右边图标01----------------------------------->
		<table border="0" cellpadding="0" cellspacing="0" id="ico1">
			<tr>
				<td class="toolbarico"><a href="#" onClick="openAppAdd();"
					onFocus="this.blur()"> <img src="${ctx}/images/ico_newfile.gif"
					border="0" align="absbottom" alt="新建" /> </a></td>
				<td class="toolbarico"><a href="#"
					onClick="document.frames('renovationFrame').edit();"
					onFocus="this.blur()"> <img src="${ctx}/images/ico_amend.gif"
					border="0" align="absbottom" alt="修改" /> </a></td>
				<td class="toolbarico"><a href="#"
					onClick="document.frames('renovationFrame').openDelete();"
					onFocus="this.blur()"> <img src="${ctx}/images/ico_delete.gif"
					border="0" align="absbottom" alt="删除" /> </a></td>
				<td class="toolbarico">&nbsp;</td>
			</tr>
		</table>
		</div>
		<!--------------------------右边图标02----------------------------------->
		<div id="registerItemDiv" style="display: none">
		<table border="0" cellpadding="0" cellspacing="0" id="ico2">
			<tr>
				<td class="toolbarico"><a href="#"
					onClick="openRenovateChargeItemAdd();" onFocus="this.blur()"> <img
					src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom"
					alt="新建" /> </a></td>
				<td class="toolbarico"><a href="#"
					onClick="document.frames('renovationFrame').edit();"
					onFocus="this.blur()"> <img src="${ctx}/images/ico_amend.gif"
					border="0" align="absbottom" alt="修改" /> </a></td>
				<td class="toolbarico"><a href="#"
					onClick="document.frames('renovationFrame').openDelete();"
					onFocus="this.blur()"> <img src="${ctx}/images/ico_delete.gif"
					border="0" align="absbottom" alt="删除" /> </a></td>
				<td class="toolbarico">&nbsp;</td>
			</tr>
		</table>
		</div>
		<!--------------------------右边图标03----------------------------------->
		<div id="inAndOutDiv" style="display: none">
		<table border="0" cellpadding="0" cellspacing="0" id="ico3">
			<tr>
				<td class="toolbarico"><a href="#"
					onClick="openPassChargeItemAdd();" onFocus="this.blur()"> <img
					src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom"
					alt="新建" /> </a></td>
				<td class="toolbarico"><a href="#"
					onClick="document.frames('renovationFrame').edit();"
					onFocus="this.blur()"> <img src="${ctx}/images/ico_amend.gif"
					border="0" align="absbottom" alt="修改" /> </a></td>
				<td class="toolbarico"><a href="#"
					onClick="document.frames('renovationFrame').openDelete();"
					onFocus="this.blur()"> <img src="${ctx}/images/ico_delete.gif"
					border="0" align="absbottom" alt="删除" /> </a></td>
				<td class="toolbarico">&nbsp;</td>
			</tr>
		</table>
		</div>
		<!--------------------------右边图标04----------------------------------->
		<div id="enterItemDiv" style="display: none">
		<table border="0" cellpadding="0" cellspacing="0" id="ico5">
			<tr>
				<td class="toolbarico"><a href="#"
					onClick="openEnterItemAdd();" onFocus="this.blur()"> <img
					src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom"
					alt="新建" /> </a></td>
				<td class="toolbarico"><a href="#"
					onClick="document.frames('renovationFrame').edit();"
					onFocus="this.blur()"> <img src="${ctx}/images/ico_amend.gif"
					border="0" align="absbottom" alt="修改" /> </a></td>
				<td class="toolbarico"><a href="#"
					onClick="document.frames('renovationFrame').openDelete();"
					onFocus="this.blur()"> <img src="${ctx}/images/ico_delete.gif"
					border="0" align="absbottom" alt="删除" /> </a></td>
				<td class="toolbarico">&nbsp;</td>
			</tr>
		</table>
		</div>
		<!--------------------------右边图标05----------------------------------->
		<div id="categorySetupDiv" style="display: none">
		<table border="0" cellpadding="0" cellspacing="0" id="ico5">
			<tr>
				<td class="toolbarico"><a href="#" onClick="openCategoryAdd()"
					onFocus="this.blur()"> <img src="${ctx}/images/ico_newfile.gif"
					border="0" align="absbottom" alt="新建" /> </a></td>
				<td class="toolbarico"><a href="#"
					onClick="document.frames('renovationFrame').edit()"
					onFocus="this.blur()"> <img src="${ctx}/images/ico_amend.gif"
					border="0" align="absbottom" alt="修改" /> </a></td>
				<td class="toolbarico"><a href="#"
					onClick="document.frames('renovationFrame').openDelete()"
					onFocus="this.blur()"> <img src="${ctx}/images/ico_delete.gif"
					border="0" align="absbottom" alt="删除" /> </a></td>
				<td class="toolbarico">&nbsp;</td>
			</tr>
		</table>
		</div>
		<!--------------------------右边图标end----------------------------------->
		</td>
	</tr>
</table>
</td>
</tr>

<tr>
	<td valign="top"><pms:tabPanel panelId="renovation" hasTop="true"
		iframeId="renovationFrame" defaultHeight="350px" barWidthLeft="90%">

		<pms:tab tabId="auditing"
			baseUrl="${ctx}/system_auditingItemAction.do?method=initList"
			caption="装修审核项目" defaultTab="true" rightDiv="auditingItem"
			beforeFunction="beforeCheck();">
		</pms:tab>
		<pms:tab tabId="registerItem"
			baseUrl="${ctx}/system_registerItemAction.do?method=initList"
			caption="装修收费登记项目" rightDiv="registerItemDiv"
			beforeFunction="beforeCheck();">
		</pms:tab>
		<pms:tab tabId="inAndOut"
			baseUrl="${ctx}/system_inAndOutAction.do?method=initList"
			caption="装修出入证收费项目" rightDiv="inAndOutDiv"
			beforeFunction="beforeCheck();">
		</pms:tab>
		<pms:tab tabId="enterItemD"
			baseUrl="${ctx}/system_enterItemAction.do?method=initList"
			caption="进场确认项目" rightDiv="enterItemDiv"
			beforeFunction="beforeCheck();">
		</pms:tab>
		<pms:tab tabId="returnVisit"
			baseUrl="${ctx}/system_returnConfig.do?method=initMain"
			caption="保证金退还设置" beforeFunction="beforeCheck();">
		</pms:tab>
		<pms:tab tabId="fitmentApproveSetup"
			baseUrl="${ctx}/system_fitmentApproveSetupAction.do?method=initMain"
			caption="装修审批设置" beforeFunction="beforeCheck();">
		</pms:tab>
		<pms:tab tabId="categorySetup"
			baseUrl="${ctx}/system_violationCategoryAction.do?method=initList"
			caption="违规类别设置" rightDiv="categorySetupDiv"
			beforeFunction="beforeCheck();">
		</pms:tab>
	</pms:tabPanel></td>
</tr>
</table>
</div>
</body>
</html>
